package com.lxm.dao;

import com.lxm.entity.AdminRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxm
 * @since 2021-11-18
 */
public interface AdminRoleMapper extends BaseMapper<AdminRole> {
        //根据用户id查角色id
        Integer selectRoleIdByUserId(int uId);
        //根据用户id查所有角色id
        List<Integer> selectAllRoleIdByUserId(int uId);

}
